Skip to content

Conversation

@cdc-mitzimorris
Copy link
Contributor

This PR adds more tests for pyrenew_hew's PyrenewHEWData class.

This is part 1 of a do-over of #709. It doesn't change any of the code in pyrenew_hew_data.py, except to add a docstring for function to_forecast_data. PR 709 made a breaking change to this function; the added documentation is intended prevent future mistakes.

Part 2 of this do-over will use the functions in PyRenew/pyrenew/time.py. specifically:

  • align_observation_times
  • create_date_time_spine
  • get_end_date
  • get_n_data_days
  • validate_mmwr_dates,

Currently, these are defined as methods in class PyrewnewHEWData; part 2 will change the calls in PyrewnewHEWData from self.get_end_date to get_end_date, etc.

@codecov
Copy link

codecov bot commented Nov 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 26.28%. Comparing base (73f78d4) to head (78dcf8e).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #733      +/-   ##
==========================================
+ Coverage   26.08%   26.28%   +0.20%     
==========================================
  Files          26       26              
  Lines        2427     2427              
==========================================
+ Hits          633      638       +5     
+ Misses       1794     1789       -5     
Flag Coverage Δ
hewr 29.93% <ø> (ø)
pipelines 3.05% <ø> (ø)
pyrenew_hew 64.07% <100.00%> (+0.88%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@damonbayer damonbayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with a few small suggestions.

@cdc-mitzimorris cdc-mitzimorris merged commit 24f2b69 into main Nov 19, 2025
67 checks passed
@cdc-mitzimorris cdc-mitzimorris deleted the mem_time_redo branch November 19, 2025 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants